﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Crosscutting.Authorize
{
    public interface IMvcActionService
    {
        Domain.Entity.MvcAction Add(Domain.Entity.MvcAction action, Domain.Entity.User operUser);

        bool Delete(Domain.Entity.MvcAction action, Domain.Entity.User operUser);

        bool DeleteTrue(Domain.Entity.MvcAction action, Domain.Entity.User operUser);

        bool Delete(IList<int> idList, Domain.Entity.User operUser);

        bool DeleteTrue(IList<int> idList, Domain.Entity.User operUser);

        bool Modify(Domain.Entity.MvcAction action, Domain.Entity.User operUser);

        IQueryable<Domain.Entity.MvcAction> GetList();

        Domain.Entity.MvcAction Get(int id);

        /// <summary>
        /// Gets the action list.
        /// permission service used
        /// </summary>
        /// <param name="actionIdList">The action id list.</param>
        /// <returns></returns>
        IQueryable<Domain.Entity.MvcAction> GetList(IQueryable<int> actionIdList);
    }
}
